/**    
  ******************************************************************************    
  * @file    SysTick/Systick_demo/systick.c    
  * @author  MCU SD    
  * @version V2.0.0
  * @date    15-Jan-2016
  * @brief   The SysTick configuration file.    
  ******************************************************************************    
  */    
/* Includes ------------------------------------------------------------------*/    
#include "gd32f1x0.h"    
#include "systick.h"    

/* Private functions ---------------------------------------------------------*/    
/**    
  * @brief  Configure SysTick.    
  * @param  None    
  * @retval None    
  */    
void SysTick_Configuration(void)    
{    
    /* Setup SysTick Timer for 1000Hz interrupts  */    
    if (SysTick_Config(SystemCoreClock / 1000))    
    {     
        /* Capture error */     
        while (1);    
    }    
    /* Configure the SysTick handler priority */    
    NVIC_SetPriority(SysTick_IRQn, 0x00);    
}    

/******************* (C) COPYRIGHT 2016 GIGADEVICE *****END OF FILE****/    
